package com.cskaoyan.config.realm;

import lombok.Data;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Auther: Yang Yi-zhou
 * @Date: 2022/9/8 19:36
 * @Description:
 */
@Data
public class CustomToken extends UsernamePasswordToken {
    // admin/wx
    private String type;

    // 新增一个构造方法，使其携带type
    public CustomToken(String username, String password, String type) {
        super(username, password);
        this.type = type;
    }
}
